<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--
    Vue基本语法：
    Vue的for循环，index为下标    iter 来自 items
-->
<div id="app">
    <li v-for="(item,index) in items">
        {{index}}------{{item.name}}------{{item.author}}
    </li>
</div>

<!--导入vue.js cdn-->
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.min.js"></script>
<script>
   var vm = new Vue({
       el: "#app",
       data: {
           items: [
               {name: "狂神说Java",author: "狂神"},
               {name: "狂射说前端",author: "狂神"}
           ]
       }
   });
</script>

</body>
</html>